/**
 * 
 */
package com.ap.core.bulkupload.types;

/**
 * @author Dilip.Sridhar
 *
 */
public enum MerchantCtgyCode {
	
	VALUE1001("1001"),
	VALUE1002("1002"),
	VALUE1003("1003"),
	VALUE1004("1004");


	    private String merchantCtgyCode;

	    private MerchantCtgyCode(String merchantCtgyCode) {
	        this.merchantCtgyCode = merchantCtgyCode;
	    }


	    public static MerchantCtgyCode getMerchantCtgyCode(String merchantCtgyCode) {
	        for (MerchantCtgyCode merchantCategoryCode : values()) {
	            if (merchantCategoryCode.merchantCtgyCode.equals(merchantCtgyCode)) {
	                return merchantCategoryCode;
	            }
	        }
	        // not found
	        throw new IllegalArgumentException("Unable to determine Merchant Ctgy Code: merchantCtgyCode= " + merchantCtgyCode);
	    }


		/**
		 * @return the txRestriction
		 */
		public String getMerchantCtgyCode() {
			return merchantCtgyCode;
		}
}
